//
//  UIButton+GEE_fastInit.m
//  KX11UI
//
//  Created by HYC on 2021/3/1.
//

#import "UIButton+Tools_HYC_Neusoft.h"
#import "NSString+Tools_HYC_Neusoft.h"
@implementation UIButton (Tools_HYC_Neusoft)
- (UIButton *(^)(CGRect T)) H_frame {
    return ^id(CGRect T){
        self.frame = T;
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_text_State:(UIControlState)state {
    return ^id(NSString * T){
        [self setTitle:T forState:state];
        return self;
        };
}
- (UIButton *(^)(UIFont *T)) H_Font {

    return ^id(UIFont *T){
        self.titleLabel.font = T;
        return self;
        };
}
- (UIButton *(^)(UIColor * T)) H_backgroundColor {
    
    return ^id(UIColor * T){
        self.backgroundColor = T;
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_textColorStr {
    return ^id(NSString * T){
        [self setTitleColor:T.color forState:0];
        return self;
        };
}
- (UIButton *(^)(UIColor * T)) H_textColor {
    
    return ^id(UIColor * T){
        [self setTitleColor:T forState:0];
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_text {
    return ^id(NSString * T){
        [self setTitle:T forState:0];
        return self;
        };
}
- (UIButton *(^)(UIImage * T)) H_Image {
    return ^id(UIImage * T){
        [self setImage:T forState:0];
        return self;
        };
}
- (UIButton *(^)(UIColor * T)) H_sele_tColor {
    
    return ^id(UIColor * T){
        [self setTitleColor:T forState:UIControlStateSelected];
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_sele_text {
    return ^id(NSString * T){
        [self setTitle:T forState:UIControlStateSelected];
        return self;
        };
}
- (UIButton *(^)(UIImage * T)) H_sele_Image {
    return ^id(UIImage * T){
        [self setImage:T forState:UIControlStateSelected];
        return self;
        };
}

//- (UIButton *(^)(NSInteger T)) H_Radius_defaultColor {
//
//    return ^id(NSInteger T){
//
//        /**
//         self.layer.cornerRadius = radius;
//         self.layer.borderColor = color.CGColor;
//         self.layer.borderWidth = width;
//         self.layer.masksToBounds = YES;
//         */
//        self.layoutIfNeeded;
//
//        [self zl_borderRadius:T];
//
//        [self zl_setBackgroundImageWithGradintColors:@[(id)[UIColor zl_colorWithHex:@"#65696B"].CGColor,(id)[UIColor zl_colorWithHex:@"#25292B"].CGColor] forState:UIControlStateNormal];
//
//        return self;
//        };
//
//}
//
//- (UIButton *(^)(NSInteger T)) H_Radius_whiteColor {
//
//    return ^id(NSInteger T){
//
//        /**
//         self.layer.cornerRadius = radius;
//         self.layer.borderColor = color.CGColor;
//         self.layer.borderWidth = width;
//         self.layer.masksToBounds = YES;
//         */
//        self.layoutIfNeeded;
//
//        [self zl_borderRadius:T];
//
//        [self zlcu_addBorderDeviceMotionFlowAnimationWithBorderWidth:2 borderColors:@[(__bridge  id)UIColorFromRGB(254,254,254,0.5).CGColor,(__bridge  id)UIColorFromRGB(164,164,164,0.6).CGColor,(__bridge  id)UIColorFromRGB(254,254,254,0.5).CGColor] bgColors:@[(__bridge  id)UIColorFromRGB(245,245,245,1).CGColor,(__bridge  id)UIColorFromRGB(255,255,255,1).CGColor]];
//
//
//        return self;
//        };
//
//}


@end
